package cn.yitun.chat.yitunserverimcore.general.main.biz.group.manager;

import cn.yitun.chat.yitunservercommonlib.dataentity.vo.group.GroupVo;
import cn.yitun.chat.yitunserverimbase.dao.group.GroupDao;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * 
 * Date 2019-01-26 23:33:41<br>
 * Description
 * 
 * @author yitun<br>
 * @version 1.1
 */
@Service
public class GroupManager {

	@Resource
	private GroupDao groupDAO;

	/**
	 * 
	 * Date 2019-01-26 23:35:50<br>
	 * Description 判断群是否存在
	 * 
	 * @author yitun<br>
	 * @param groupId
	 * @return
	 * @version 1.1
	 */
	public boolean has(Long groupId) {
		groupId = null == groupId ? 0l : groupId;
		GroupVo bean = groupDAO.getVO(groupId);
		return bean != null;
	}
}
